package com.techwells.learningkites.fragment;

import com.techwells.learningkites.R;
import com.techwells.learningkites.controller.LoginActivity;
import com.techwells.learningkites.controller.SettingUserInfoActivity;
import com.techwells.taco.mvvm.Route;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.TextView;

public class RegisterMailFragment extends Fragment implements OnClickListener {
	
	private EditText mail,password;
	private TextView btnRegister;
	
	@Override
	public View onCreateView(LayoutInflater inflater,
			@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		return inflater.inflate(R.layout.fragment_register_mail, container,false);
	}

	
	@Override
	public void onActivityCreated(@Nullable Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
		
		initViews();
	}


	private void initViews() {
		mail = (EditText) getActivity().findViewById(R.id.mail);
		password = (EditText) getActivity().findViewById(R.id.password);
		btnRegister = (TextView) getActivity().findViewById(R.id.btn_register);
		btnRegister.setOnClickListener(this);
	}


	@Override
	public void onClick(View arg0) {
//		Route.route().nextController(getActivity(), SettingUserInfoActivity.class.getName(), Route.WITHOUT_RESULTCODE);
	}
}
